/*
 * ShopPayWays.java
 * business
 *
 * Created by chentao on 2017/5/6.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.bean.PayWay;

import java.util.List;

/**
 * TODO:
 * <p>
 * Created by ChenTao(chentao7v@gmail.com) on 2017/5/6 0006 9:45
 */
public class ShopPayWays {

    @SerializedName("payment_list")
    private List<PayWay> payWays;

    @SerializedName("supplier_name")
    private String supplierName;

    @SerializedName("goods_thumb")
    private List<String> images;

    // 选择的支付方式
    @Expose
    @SerializedName("pay_code")
    private String payCode;

    // 店铺
    @Expose
    @SerializedName("supplier_id")
    private String supplierId;

    // 当前点店铺的总金额
    @SerializedName("sub_total")
    private float subTotal;

    public float getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(float subTotal) {
        this.subTotal = subTotal;
    }

    public String getPayCode() {
        return payCode;
    }

    public void setPayCode(String payCode) {
        this.payCode = payCode;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public List<PayWay> getPayWays() {
        return payWays;
    }

    public void setPayWays(List<PayWay> payWays) {
        this.payWays = payWays;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ShopPayWays that = (ShopPayWays) o;

        return supplierId.equals(that.supplierId);

    }

    @Override
    public int hashCode() {
        return supplierId.hashCode();
    }
}
